﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPSystem.Common.DTO
{
    public class RolesPermissionListDto
    {
        public int PermissionsId { get; set; }
        /// <summary>
        /// 权限名称
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]
        public string PermissionsName { get; set; }
        /// <summary>
        /// 角色名称 (可空)
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string RoleName { get; set; }

        /// <summary>
        /// 是否可以查看 (可空)
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public bool? CanView { get; set; } = true;

        /// <summary>
        /// 是否可以添加 (可空)
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public bool? CanAdd { get; set; } = true;

        /// <summary>
        /// 是否可以编辑 (可空)
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public bool? CanEdit { get; set; } = true;

        /// <summary>
        /// 是否可以删除 (可空)
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public bool? CanDelete { get; set; } = true;
    }
}
